home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / WINDOWS / PRIMER31.ARJ / MRDOS6.TXT < prev    next >
Text File  |  1992-03-12  |  11KB  |  270 lines

  1. ----------------------------[ HARD DISK LEVEL 1 ]-----------------------------
  2.  
  3. HARD DISK DRIVES
  4. ----------------
  5. Also called Hard Drive, Hard Cards, Fixed Disk Drives.  Hard Drives are
  6. essentially large floppies housed within the computer.  They are much faster,
  7. have much higher capacity, and are less likely to fail due to the safe
  8. environment from within which they operate.
  9.  
  10. Hard Disk cost is related to its capacity and its Access Time.  Access Time is
  11. the amount of time it takes the disk to locate a random piece of information.
  12. Access Time is measured in milliseconds (ms-thousandths of a second).  A fast
  13. one would be 28ms, a slow one 65ms.
  14.  
  15.  
  16. DOS    Disk Operating System   (Director Of Services)
  17. ---
  18. A quick review of some DOS concepts discussed earlier is in order.  DOS it the
  19. master control program for the flow of information within a PC.  One of its
  20. primary functions is to oversee all hard disk activities - reading/writing
  21. information from/to a disk and loading/executing programs.  It controls
  22. (links) all hardware devices so they may communicate with one another
  23. including:
  24.  
  25.       Floppy Drives:   5.25", 3.5"
  26.         Hard Drives:   20meg, 40meg +.....
  27.            Ram Disk:   Simulates a disk drive from within RAM
  28.          Laser Disk:   "CD's" for computers
  29. Tape Storage Device:   Backup system typically using cassette type
  30.                        tapes
  31.  
  32. PLUS,  Screen, Keyboard, Printer, Modem, Mouse, ...
  33.  
  34. As if this wasn't enough, this modest software called DOS also keeps
  35. track of the current time and date, and the usage of all memory locations
  36. within RAM.
  37.  
  38. Once DOS has been properly BOOTed, you will see the familiar "DOS
  39. Prompt":
  40.  
  41.      A>
  42.  
  43. This says:  1. DOS has been properly installed
  44.             2. "A" is the default drive
  45.             3. DOS is awaiting your next command
  46.  
  47.  
  48. DOS REALITIES
  49. -------------
  50. There are three types of FILES that may be successfully "executed" from
  51. the DOS Prompt:
  52.  
  53.     1. *.EXE Commands      ("EXECUTE" Program files  Lotus, dBASE, etc.)
  54.     2. *.COM Commands      ("COMMAND" Program files  Lotus, dBASE, etc.)
  55.     3. *.BAT               ("BATCH" Custom programs)                            
  56.  
  57. To successfully execute one of the *.EXE, *.COM, or *.BAT  command files, the
  58. file itself must be either:
  59.  
  60.           1. In the Current directory
  61.           2. Within a directory that is part of the DOS "PATH" command
  62.  
  63. Batch (.BAT) files are the only executable files you can write using a simple
  64. word processor or DOS's built-in Line Editor (EDLIN) - more later.
  65.  
  66. BOOTING (or Bootstrap)
  67. -------
  68. To load and execute the Disk Operating System "DOS".
  69.  
  70. This term comes from the phrase "pull yourself up by your own bootstraps".
  71. This happens within a PC when it is turned on.  Actually, a built-in program
  72. (ROM) is executed, next a couple of "hidden" files from the ROOT directory
  73. (hard drive) or DOS Disk (floppy disk), then COMMAND.COM (DOS internal command
  74. interpreter) is followed by the Optional CONFIG.SYS and AUTOEXEC.BAT files.
  75.  
  76. COMMAND.COM:  Must be loaded for DOS to operate properly; it contains the
  77.               Internal DOS commands including those used most often: COPY,
  78.               DIR, DEL, etc.  The remainder of files on the DOS disk are
  79.               called External Files (DISKCOPY, CHKDSK, etc.).  To utilize one
  80.               of these commands, the DOS disk must be accessible.
  81.  
  82. CONFIG.SYS:   Optional.  If it is located on the Disk that you are BOOTing
  83.               from, DOS will "open" it and read and interpret a list of system
  84.               configuration commands.  This is an ASCII text file which can be
  85.               created by any text editor.  Some configuration commands are:
  86.               FILES, BUFFERS, and DEVICE.
  87.  
  88. AUTOEXEC.BAT: Optional.  An ASCII text file.  A "batch" file.  A set of DOS
  89.               commands and other special commands.  "Opened" and read after
  90.               CONFIG.SYS, IF it exists on the BOOT disk.
  91.  
  92.  
  93. SOME FREQUENTLY USED DOS COMMANDS WITHIN A HARD DISK ENVIRONMENT
  94. ----------------------------------------------------------------
  95. A Hard Disk is just like a floppy.  However, due to its size, additional file
  96. management commands are needed.  The following can also be used on floppy
  97. disks, but they are most commonly found in Hard Drive environments.
  98.  
  99. INTERNAL  │   EXTERNAL (Insert DOS in Drive A)
  100.           │
  101.  MD       │   CHKDSK
  102.  CD       │   BACKUP
  103.  RD       │   RESTORE
  104.  PROMPT   │   SUBST
  105.  PATH     │   TREE
  106.  
  107.                                                                                 
  108. **-- Internal DOS Commands -
  109.  
  110. MD - Make a directory (see below)
  111.  
  112. CD - Change to a directory (see below)
  113.  
  114. RD - Remove a directory - must be rid of files first (see below)
  115.  
  116. PROMPT $p$g - Changes the way the DOS prompt is display.  $p$g insures that
  117.               the current directory is shown at the prompt.  Very useful.
  118.               Usually "set" in the AUTOEXEC.bat file (see below)
  119.  
  120. PATH=c:\DOS;c:\BATCH;c:\UTILITY
  121.  
  122.      Sets up a command (*.EXE, *.COM, *.BAT) search path in the DOS
  123.      environment.  When a command is issued from the DOS prompt, it first
  124.      looks in the directory you are currently in, then looks in each directory
  125.      noted on this path.  Usually this command is built into the AUTOEXEC.bat
  126.      file (see below)
  127.  
  128.  
  129. **-- External DOS Commands -
  130.  
  131.  
  132. CHKDSK C:\*.*  /F
  133.  
  134.   Checks the integrity of disk files - the level of fragmentation of files.
  135.   Indicates the number of files and amount of free storage space remaining on
  136.   the disk in drive A.  It also indicates the amount of RAM storage.  If any
  137.   lost clusters are found (data without a home), they can be converted to
  138.   *.CHK files so you can delete them to free up the disk space.
  139.  
  140. SUBST  E: C:\LOTUS\123FILES    - Assigns a 1-letter drive ID (E) to a
  141.                                  directory path
  142.  
  143. SUBST E: /D   - Cancel previous designation
  144.  
  145. TREE    - Displays a list of all subdirectories on the drive
  146.  
  147. TREE  /F  -  Displays a detailed list of all subdirectories and all files on
  148.              the disk.
  149.  
  150. BACKUP  (see Hard Disk Level 2)
  151.  
  152. RESTORE  (see Hard Disk Level 2)
  153.  
  154.  
  155. DIRECTORIES
  156. -----------
  157. As previously mentioned, a hard disk is essentially a large floppy disk.
  158. However, it offers some distinct advantages:
  159.  
  160.    Is much larger
  161.    Stays inside the machine
  162.    Operates (transfers data) at a much higher rate (5-10 times)
  163.  
  164. Because a Hard Disk is so much larger than a floppy, we use an additional file  
  165. organization tool called SUBDIRECTORIES.
  166.  
  167. If a floppy is like a filing drawer, then a Hard Drive is like a group of file
  168. drawers, each drawer call a SUBDIRECTORY.
  169.  
  170. DOS lets you organize files using tree-structured directories rather than a
  171. single directory.  In other words, since a 20 meg (20,000,000 byte) capacity
  172. hard drive can contain approximately 60  floppy disks worth of files, an
  173. additional organization tool is needed.  The creation of SUBDIRECTORIES allow
  174. us to subdivide a disk to contain related files.  It's as if we have many file
  175. cabinets available to store our files rather than a single giant one.
  176.  
  177. DOS permits up to 112 files on a floppy disk (360k).  However, with that many
  178. it is tedious to examine via a DIR command and it also slows DOS's file access
  179. and retrieval.
  180.  
  181. ROOT DIRECTORY - Main directory.  It contains all the subdirectories.  It also
  182. provides support for all the SUBDIRECTORIES.
  183.  
  184. Each SUBDIRECTORY can contain files as well as other SUBDIRECTORIES.  These
  185. other Subdirectories could be thought of as SUB-SUBDIRECTORIES.
  186.  
  187. With floppy disks, to use a file in a different drive, we would specify the
  188. drive and filename (B:Filename.ext).  Similarly, if we want to access a file
  189. in a SUBDIRECTORY we specify a PATH, OR make that SUBDIRECTORY the "current"
  190. one.
  191.  
  192.                          ┌──────────────┐
  193.                          │ROOT DIRECTORY│
  194.                          │              │
  195.                          │         files│
  196.                          └──────┬───────┘
  197.                                 │
  198.            ┌────────────────────┼────────────────────┐
  199.            │                    │                    │
  200.     ┌──────┴───────┐     ┌──────┴───────┐     ┌──────┴───────┐
  201.     │SUBDIRECTORY  │     │SUBDIRECTORY  │     │SUBDIRECTORY  │
  202.     │         files│     │         files│     │         files│
  203.     └────────┬─────┘     └──────────────┘     └──────┬───────┘
  204.              │                                       │
  205.        ┌─────┴──────────────────┐                    │
  206. ┌──────┴───────────┐  ┌─────────┴────────┐    ┌──────┴───────────┐
  207. │"SUB-SUBDIRECTORY"│  │"SUB-SUBDIRECTORY"│    │"SUB-SUBDIRECTORY"│
  208. │             files│  │             files│    │             files│
  209. └──────────────────┘  └──────────────────┘    └──────────────────┘
  210.  
  211. PATH:  A PATH specifies the names of the subdirectories that DOS must go
  212. through from the ROOT DIRECTORY to get to the file.  The directories are
  213. separated by a back slash (  \  ).  (NOT the same as the DOS PATH command
  214. noted above)
  215.                                                                                 
  216.  
  217.      EX:   C:\123FILES\PROJECTX\BUDGET.WK1
  218.  
  219.  
  220.  C:\                      Root Directory
  221.   │
  222.   ├─ 123FILES             Lotus files Subdirectory
  223.   │
  224.   └──┬── PROJECTX         Sub-Subdirectory containing all "PROJECTX" files
  225.      │
  226.      └───── BUDGET.WK1    A specific Lotus file called BUDGET within the
  227.                           PROJECTX Sub-Subdirectory
  228.  
  229.  
  230. DOS COMMANDS & SUBDIRECTORIES:  There are only 3 key commands in dealing with
  231. Subdirectories:  MD, CD, and RD
  232.  
  233. TO MAKE A SUBDIRECTORY
  234. ----------------------
  235. MD dirspec  - Internal - to Make a Directory -dirspec is the name of the
  236.                          subdirectory or its PATH
  237.  
  238.      EX: C>MD 123FILES  <ENTER>   -  This creates a subdirectory
  239.                                      called 123FILES
  240.  
  241.          - Naming a SUBDIRECTORY follows the same rules for file naming,
  242.            except extensions are not used
  243.          - You can create an unlimited number of SUBDIRECTORIES
  244.          - Identical Filenames can exist in different SUBs (Remember, 2 files
  245.            with identical filenames CANNOT coexist in the same SUBDIRECTORY)
  246.  
  247. TO CHANGE THE "CURRENT" SUBDIRECTORY
  248. ------------------------------------
  249. The computer can only have 1 "file drawer" open at a time - thus this is
  250. called the current directory.  Unless instructed otherwise, the computer will
  251. assume all files sought and sent will go into this current subdirectory.
  252.  
  253. CD\dirspec - to Change the "current" Directory
  254.  
  255.    - EX:  C>CD\LOTUS    <ENTER>    -  This makes a subdirectory called LOTUS
  256.                                       the current one
  257.  
  258. TO REMOVE/ERASE A SUBDIRECTORY
  259. ------------------------------
  260.      1. First make this directory the current one C>cd/dirspec
  261.      2. DELETE all the files within this directory
  262.            C>DEL *.*
  263.         It will ask if you are sure - Y
  264.      3. Go to the ROOT DIRECTORY   C>cd\
  265.      4. RD dirspec     - Remove Directory
  266.  
  267.               C>RD dirspec
  268.  
  269. *****   END OF FILE:  Press <ESC> to return to Main Menu   *****
  270.